import { createRouter, createWebHashHistory, createWebHistory, } from "vue-router";

const routes = [
    {
        path: '/',
        name: 'Index',
        component: () => import('../views/Home/Index.vue'),
        meta: {
            index: 1
        }
    },
    {
        path: '/home/list',
        name: 'homeList',
        component: () => import('../views/Home/list.vue'),
        meta: {
            index: 1
        }
    },
    {
        path: '/login/index',
        name: 'loginIndex',
        component: () => import('../views/login/index.vue'),
        meta: {
            index: 1
        }
    },
    {
        path: '/register',
        name: 'register',
        component: () => import('../views/login/register.vue'),
        meta: {
            index: 1
        }
    },
    {
        path: '/article/zpsite',
        name: 'ZpSite',
        component: () => import('../views/Article/Index.vue'),
        meta: {
            index: 2
        }
    }, 
    {
        path: '/message/index',
        name: 'messageIndex',
        component: () => import('../views/message/index.vue'),
        meta: {
            index: 2
        }
    }, 
    {
        path: '/message/detail',
        name: 'messageDetail',
        component: () => import('../views/message/detail.vue'),
        meta: {
            index: 2
        }
    }, 
    {
        path: '/user/index',
        name: 'userIndex',
        component: () => import('../views/user/index.vue'),
        meta: {
            index: 2
        }
    }, 
    {
        path: '/user/feedback',
        name: 'userFeedback',
        component: () => import('../views/user/feedback.vue'),
        meta: {
            index: 2
        }
    }, 
    {
        path: '/user/resume',
        name: 'userResume',
        component: () => import('../views/user/resume.vue'),
        meta: {
            index: 2
        }
    }, 
    {
        path: '/article/zponline',
        name: 'ZpOnline',
        component: () => import('../views/ZP/zpOnline.vue'),
        meta: {
            index: 2
        }
    },
    {
        path: '/article/detail',
        name: 'Detail',
        component: () => import('../views/Article/Detail.vue'),
        meta: {
            index: 3
        }
    },
    {
        path: '/article/policy',
        name: 'Policy',
        component: () => import('../views/Article/Index.vue'),
        meta: {
            index: 2
        }
    },
    {
        path: '/article/level',
        name: 'Level',
        component: () => import('../views/Article/level.vue'),
        meta: {
            index: 2
        }
    },
    {
        path: '/article/pecruiment',
        name: 'Recruitment',
        component: () => import('../views/Article/Index.vue'),
        meta: {
            index: 2
        }
    },
    {
        path: '/article/entrepreneurship',
        name: 'Entrepreneurship',
        component: () => import('../views/Article/Index.vue'),
        meta: {
            index: 2
        }
    },
    {
        path: '/article/training',
        name: 'Training',
        component: () => import('../views/Article/Index.vue'),
        meta: {
            index: 2
        }
    },
    {
        path: '/article/improve',
        name: 'Improve',
        component: () => import('../views/Article/Index.vue'),
        meta: {
            index: 2
        }
    },
    {
        path: '/article/taxIncentives',
        name: 'TaxIncentives',
        component: () => import('../views/Article/Index.vue'),
        meta: {
            index: 2
        }
    },
    {
        path: '/article/policyText',
        name: 'PolicyText',
        component: () => import('../views/Article/Index.vue'),
        meta: {
            index: 2
        }
    },
    {
        path: '/article/questionnaire',
        name: 'Questionnaire',
        component: () => import('../views/Article/Index.vue'),
        meta: {
            index: 2
        }
    },
    {
        path: '/example',
        name: 'Example',
        component: () => import('../views/Example/Index.vue'),
        meta: {
            index: 1
        }
    },
    {
        path: '/example/watch',
        name: 'ExampleWatch',
        component: () => import('../views/Example/Watch.vue'),
        meta: {
            index: 1
        }
    }
]

const router = createRouter({
    // history: createWebHistory('/ex-serviceman/'),
    history: createWebHashHistory(),
    routes,
})

export default router;